using Box2D.Net.Dynamics.Bodies;

namespace Box2D.Net.Dynamics.Joints
{
    /// <summary>
    ///  Joint definitions are used to construct joints.
    /// </summary>
    public class JointDef
    {
        /// <summary>
        ///  The first attached body.
        /// </summary>
        public Body BodyA;

        /// <summary>
        ///  The second attached body.
        /// </summary>
        public Body BodyB;

        /// <summary>
        ///  Set this flag to true if the attached bodies should collide.
        /// </summary>
        public bool CollideConnected;

        /// <summary>
        ///  Use this to attach application specific data to your joints.
        /// </summary>
        public object UserData;

        public JointDef()
        {
            UserData = null;
            BodyA = null;
            BodyB = null;
            CollideConnected = false;
        }
    }
}